home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2007 September / PCWSEP07.iso / Software / Full / NetObjects Fusion 9 Standard / NOF9_Full_EN.exe / data1.cab / FSI / lib / nof / Contract.js < prev    next >
Encoding:
Text File  |  2005-11-16  |  1.2 KB  |  53 lines

  1. /****i* SOURCE_FILE/INFO
  2.     *
  3.     * NAME
  4.     *  Contract.js
  5.     *
  6.     * USAGE
  7.     *  Part of Netobjects JavaScript Library.
  8.     *
  9.     * COPYRIGHT
  10.     *  Copyright ⌐ 2000-2005 Website Pros, Inc.
  11.     *  All Rights Reserved.
  12.     *
  13.     *  This is an unpublished work protected by Website Pros, Inc.
  14.     *  as a trade secret, and is not to be used or disclosed except as
  15.     *  expressly provided in a written license agreement executed by
  16.     *  you and Website Pros, Inc.
  17.     *
  18.     *      <copyright@websitepros.com>
  19.     *
  20.     * NOTES
  21.     *  JavaScript code.
  22.     *
  23.     *****/
  24. if (!IS.isModuleInitialized("IS.NOF.Contract"))
  25. {      
  26.     /****h* NOF_JavaScript_Library/NOF.Contract
  27.     *
  28.     * NAME
  29.     *  NOF.Contract
  30.     *
  31.     * DESCRIPTION
  32.     *   
  33.     *
  34.     ****/        
  35.     function NOF_Contract(){    
  36.         this.Require = function Require( testCond, msg ){
  37.             //if (!testCond)
  38.             //  throw (new NOF.Exception("PRECONDITION FAILED " + msg));
  39.         }
  40.         
  41.         this.Assert = function Assert( testCond, msg ){
  42.             //if (!testCond)
  43.             //  throw (new NOF.Exception("ASSERTION FAILED " + msg));
  44.         }
  45.         
  46.         this.Ensure = function Ensure( testCond, msg ){
  47.             //if (!testCond)
  48.             //  throw (new NOF.Exception("POSTCONDITION FAILED " + msg));
  49.         }
  50.     }
  51.     
  52.     NOF.addVariable("Contract", new NOF_Contract() );    
  53. }